package com.lonton.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.lonton.task.MailSchedualler;

@RestController
public class SendMailController {
	@Autowired
	private MailSchedualler mailSchedualler;
	
	@GetMapping("/send")
	public String send() {
		mailSchedualler.process();
		return "发送成功";
	}
}
